<?php
	$_title='个人主页|我的消息';
	include_once 'head.php';
	$newsc=new news(); //消息类
	//左侧导航
	$my_label='message';
	$smarty->assign('my_label',$my_label);		
	$userc=new user();
	$id=$_GET['id'];
	// $user_id=1;


	//读取作者个人信息
	if($user_id!='' && $user_id!=null){
		$key='i.*';
		$user=$userc->userInfo($user_id,$key);
		$smarty->assign('user',$user);
	}else{
		header('Location:login.php');
	}	
	$smarty->assign('user',$user);




	if($id!='' && $id!=null){
		//读取系统信息
		$row=$newsc->message_info($id);
		@$row['create_time']=date('Y-m-d H:i:s',$row['create_time']);
	}
	



	$smarty->assign('row',$row);

	//html模板区分
	$html='my_message_sys_info.html';
	$smarty->display($html);		
?>